.class public Lcom/brixd/niceapp/activity/fragment/CardFragment;
.super Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;
.source "CardFragment.java"


# static fields
.field private static final APP_MODEL:Ljava/lang/String; = "AppModel"

.field private static final REQUEST_CODE_DETAIL:I = 0x64


# instance fields
.field protected appModel:Lcom/brixd/niceapp/model/AppModel;

.field private cardOnClickListener:Landroid/view/View$OnClickListener;

.field private cardOnTouchListener:Landroid/view/View$OnTouchListener;

.field protected mBottomEdgeImageView:Landroid/widget/ImageView;

.field protected mBravoNumText:Landroid/widget/TextView;

.field protected mCardLayout:Landroid/widget/RelativeLayout;

.field protected mCoverImageView:Landroid/widget/ImageView;

.field protected mDigestText:Lcom/brixd/niceapp/control/HtmlTextView;

.field protected mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field protected mIsScrolling:Z

.field private mLastMotionPoint:Landroid/graphics/Point;

.field private mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

.field private mOnLinkClickListener:Lcom/brixd/niceapp/control/LocalLinkMovementMethod$OnLinkClickListener;

.field protected mRecommendLevelText:Landroid/widget/TextView;

.field protected mSubTitleText:Landroid/widget/TextView;

.field protected mTitleText:Landroid/widget/TextView;

.field private mTouchSlop:I

.field protected options:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 45
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;-><init>()V

    .line 62
    new-instance v0, Landroid/graphics/Point;

    invoke-direct {v0}, Landroid/graphics/Point;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mLastMotionPoint:Landroid/graphics/Point;

    .line 138
    new-instance v0, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment$1;-><init>(Lcom/brixd/niceapp/activity/fragment/CardFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mOnLinkClickListener:Lcom/brixd/niceapp/control/LocalLinkMovementMethod$OnLinkClickListener;

    .line 189
    new-instance v0, Lcom/brixd/niceapp/activity/fragment/CardFragment$2;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment$2;-><init>(Lcom/brixd/niceapp/activity/fragment/CardFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->cardOnTouchListener:Landroid/view/View$OnTouchListener;

    .line 209
    new-instance v0, Lcom/brixd/niceapp/activity/fragment/CardFragment$3;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment$3;-><init>(Lcom/brixd/niceapp/activity/fragment/CardFragment;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->cardOnClickListener:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/fragment/CardFragment;)Lcom/brixd/niceapp/util/LinkHandler;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/CardFragment;

    .prologue
    .line 45
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

    return-object v0
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/fragment/CardFragment;Ljava/lang/String;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/CardFragment;
    .param p1, "x1"    # Ljava/lang/String;

    .prologue
    .line 45
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->traceEvent(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/fragment/CardFragment;)Landroid/graphics/Point;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/CardFragment;

    .prologue
    .line 45
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mLastMotionPoint:Landroid/graphics/Point;

    return-object v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/fragment/CardFragment;Landroid/graphics/Point;Landroid/graphics/Point;)Z
    .registers 4
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/CardFragment;
    .param p1, "x1"    # Landroid/graphics/Point;
    .param p2, "x2"    # Landroid/graphics/Point;

    .prologue
    .line 45
    invoke-direct {p0, p1, p2}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->isScrolling(Landroid/graphics/Point;Landroid/graphics/Point;)Z

    move-result v0

    return v0
.end method

.method public static getInstance(Lcom/brixd/niceapp/model/AppModel;)Lcom/brixd/niceapp/activity/fragment/CardFragment;
    .registers 4
    .param p0, "appModel"    # Lcom/brixd/niceapp/model/AppModel;

    .prologue
    .line 67
    new-instance v1, Lcom/brixd/niceapp/activity/fragment/CardFragment;

    invoke-direct {v1}, Lcom/brixd/niceapp/activity/fragment/CardFragment;-><init>()V

    .line 68
    .local v1, "cardFragment":Lcom/brixd/niceapp/activity/fragment/CardFragment;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 69
    .local v0, "args":Landroid/os/Bundle;
    const-string v2, "AppModel"

    invoke-virtual {v0, v2, p0}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V

    .line 70
    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->setArguments(Landroid/os/Bundle;)V

    .line 71
    return-object v1
.end method

.method private isScrolling(Landroid/graphics/Point;Landroid/graphics/Point;)Z
    .registers 5
    .param p1, "lastPoint"    # Landroid/graphics/Point;
    .param p2, "curPoint"    # Landroid/graphics/Point;

    .prologue
    .line 259
    iget v0, p1, Landroid/graphics/Point;->x:I

    iget v1, p2, Landroid/graphics/Point;->x:I

    sub-int/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    iget v1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mTouchSlop:I

    if-gt v0, v1, :cond_1a

    iget v0, p1, Landroid/graphics/Point;->y:I

    iget v1, p2, Landroid/graphics/Point;->y:I

    sub-int/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    iget v1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mTouchSlop:I

    if-le v0, v1, :cond_1c

    :cond_1a
    const/4 v0, 0x1

    :goto_1b
    return v0

    :cond_1c
    const/4 v0, 0x0

    goto :goto_1b
.end method

.method private traceEvent(Ljava/lang/String;)V
    .registers 6
    .param p1, "event"    # Ljava/lang/String;

    .prologue
    .line 252
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    .line 253
    .local v0, "map":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    const-string v1, "ArticleName"

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 254
    const-string v1, "ArticleId"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 255
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1, p1, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Map;)V

    .line 256
    return-void
.end method


# virtual methods
.method protected initActions(Landroid/view/View;)V
    .registers 3
    .param p1, "fragmentView"    # Landroid/view/View;

    .prologue
    .line 185
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->cardOnTouchListener:Landroid/view/View$OnTouchListener;

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 186
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->cardOnClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 187
    return-void
.end method

.method protected initAndDisplayCoverImage()V
    .registers 11

    .prologue
    .line 263
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getScreenDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    .line 264
    .local v0, "dm":Landroid/util/DisplayMetrics;
    iget v5, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 265
    .local v5, "screenWidth":I
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    const v7, 0x7f090026

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v4

    .line 266
    .local v4, "marginOffset":I
    mul-int/lit8 v6, v4, 0x2

    sub-int v2, v5, v6

    .line 267
    .local v2, "imageWidth":I
    int-to-float v6, v2

    const/high16 v7, 0x43a00000

    div-float/2addr v6, v7

    const/high16 v7, 0x43340000

    mul-float/2addr v6, v7

    float-to-int v1, v6

    .line 269
    .local v1, "imageHeight":I
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCoverImageView:Landroid/widget/ImageView;

    invoke-virtual {v6}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 270
    .local v3, "layoutParams":Landroid/view/ViewGroup$LayoutParams;
    int-to-float v6, v1

    invoke-static {v6}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Float;->intValue()I

    move-result v6

    iput v6, v3, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 271
    iput v2, v3, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 273
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v6}, Lcom/brixd/niceapp/model/AppModel;->getCoverImageUrl()Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_55

    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v6}, Lcom/brixd/niceapp/model/AppModel;->getCoverImageUrl()Ljava/lang/String;

    move-result-object v6

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-nez v6, :cond_55

    .line 274
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    iget-object v7, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v7}, Lcom/brixd/niceapp/model/AppModel;->getCoverImageUrl()Ljava/lang/String;

    move-result-object v7

    iget-object v8, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCoverImageView:Landroid/widget/ImageView;

    iget-object v9, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->options:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v6, v7, v8, v9}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 276
    :cond_55
    return-void
.end method

.method protected initData()V
    .registers 4

    .prologue
    const/4 v2, 0x1

    .line 87
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "AppModel"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getSerializable(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/AppModel;

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    .line 88
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    const v1, 0x7f0200b3

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 89
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->options:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 90
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 92
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v0

    iput v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mTouchSlop:I

    .line 94
    new-instance v0, Lcom/brixd/niceapp/util/LinkHandler;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/LinkHandler;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

    .line 95
    return-void
.end method

.method protected initViews(Landroid/view/LayoutInflater;)Landroid/view/View;
    .registers 9
    .param p1, "inflater"    # Landroid/view/LayoutInflater;

    .prologue
    .line 98
    const v4, 0x7f03004c

    const/4 v5, 0x0

    invoke-virtual {p1, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 100
    .local v3, "view":Landroid/view/View;
    const v4, 0x7f0a0112

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/RelativeLayout;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCardLayout:Landroid/widget/RelativeLayout;

    .line 101
    const v4, 0x7f0a0111

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mBottomEdgeImageView:Landroid/widget/ImageView;

    .line 103
    const v4, 0x7f0a00b3

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCoverImageView:Landroid/widget/ImageView;

    .line 104
    const v4, 0x7f0a010f

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mTitleText:Landroid/widget/TextView;

    .line 105
    const v4, 0x7f0a0114

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mSubTitleText:Landroid/widget/TextView;

    .line 106
    const v4, 0x7f0a0115

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Lcom/brixd/niceapp/control/HtmlTextView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mDigestText:Lcom/brixd/niceapp/control/HtmlTextView;

    .line 107
    const v4, 0x7f0a0116

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mBravoNumText:Landroid/widget/TextView;

    .line 108
    const v4, 0x7f0a0117

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    iput-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mRecommendLevelText:Landroid/widget/TextView;

    .line 110
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mTitleText:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v5}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 111
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mSubTitleText:Landroid/widget/TextView;

    iget-object v5, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v5}, Lcom/brixd/niceapp/model/AppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 113
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/AppModel;->getCoverCommentModel()Lcom/brixd/niceapp/model/CommentModel;

    move-result-object v0

    .line 114
    .local v0, "coverComment":Lcom/brixd/niceapp/model/CommentModel;
    if-nez v0, :cond_ce

    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/AppModel;->getDigest()Ljava/lang/String;

    move-result-object v1

    .line 116
    .local v1, "digest":Ljava/lang/String;
    :goto_84
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mDigestText:Lcom/brixd/niceapp/control/HtmlTextView;

    invoke-virtual {v4, v1}, Lcom/brixd/niceapp/control/HtmlTextView;->setTextViewHtml(Ljava/lang/String;)V

    .line 117
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mDigestText:Lcom/brixd/niceapp/control/HtmlTextView;

    new-instance v5, Lcom/brixd/niceapp/control/LocalLinkMovementMethod;

    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mOnLinkClickListener:Lcom/brixd/niceapp/control/LocalLinkMovementMethod$OnLinkClickListener;

    invoke-direct {v5, v6}, Lcom/brixd/niceapp/control/LocalLinkMovementMethod;-><init>(Lcom/brixd/niceapp/control/LocalLinkMovementMethod$OnLinkClickListener;)V

    invoke-virtual {v4, v5}, Lcom/brixd/niceapp/control/HtmlTextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 119
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mBravoNumText:Landroid/widget/TextView;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v6}, Lcom/brixd/niceapp/model/AppModel;->getUpNum()I

    move-result v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 120
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v4}, Lcom/brixd/niceapp/model/AppModel;->getRecommendLevel()Ljava/lang/String;

    move-result-object v2

    .line 121
    .local v2, "recommendLevel":Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_d3

    .line 122
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mRecommendLevelText:Landroid/widget/TextView;

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 123
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mRecommendLevelText:Landroid/widget/TextView;

    const/4 v5, 0x0

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 133
    :goto_ca
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/fragment/CardFragment;->initAndDisplayCoverImage()V

    .line 135
    return-object v3

    .line 114
    .end local v1    # "digest":Ljava/lang/String;
    .end local v2    # "recommendLevel":Ljava/lang/String;
    :cond_ce
    invoke-virtual {v0}, Lcom/brixd/niceapp/model/CommentModel;->getContent()Ljava/lang/String;

    move-result-object v1

    goto :goto_84

    .line 125
    .restart local v1    # "digest":Ljava/lang/String;
    .restart local v2    # "recommendLevel":Ljava/lang/String;
    :cond_d3
    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mRecommendLevelText:Landroid/widget/TextView;

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_ca
.end method

.method public onActivityResult(IILandroid/content/Intent;)V
    .registers 8
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "data"    # Landroid/content/Intent;

    .prologue
    .line 292
    invoke-super {p0, p1, p2, p3}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;->onActivityResult(IILandroid/content/Intent;)V

    .line 293
    const/16 v1, 0x64

    if-ne p1, v1, :cond_3d

    const/4 v1, -0x1

    if-ne p2, v1, :cond_3d

    .line 294
    if-eqz p3, :cond_3d

    .line 295
    const-string v1, "UpNum"

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->getUpNum()I

    move-result v2

    invoke-virtual {p3, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 296
    .local v0, "upNum":I
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getUpNum()I

    move-result v1

    if-eq v0, v1, :cond_3d

    .line 297
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->appModel:Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/model/AppModel;->setUpNum(I)V

    .line 298
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mBravoNumText:Landroid/widget/TextView;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "  "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 303
    .end local v0    # "upNum":I
    :cond_3d
    return-void
.end method

.method public onDestroy()V
    .registers 3

    .prologue
    .line 286
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCoverImageView:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 287
    invoke-super {p0}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;->onDestroy()V

    .line 288
    return-void
.end method

.method public onDestroyView()V
    .registers 3

    .prologue
    .line 280
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/CardFragment;->mCoverImageView:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 281
    invoke-super {p0}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;->onDestroyView()V

    .line 282
    return-void
.end method

.method public onPause()V
    .registers 2

    .prologue
    .line 82
    invoke-super {p0}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;->onPause()V

    .line 83
    const-string v0, "CardFragment"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 84
    return-void
.end method

.method public onResume()V
    .registers 2

    .prologue
    .line 76
    invoke-super {p0}, Lcom/brixd/niceapp/activity/fragment/AbsBaseFragment;->onResume()V

    .line 77
    const-string v0, "CardFragment"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 78
    return-void
.end method
